<%--06_scopeObject.jsp--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>06_scopeObject</title>
</head>
<body>
<%
    pageContext.setAttribute("key1","pageValue");
    request.setAttribute("key1","requestValue");
    session.setAttribute("key1","sessionValue");
    application.setAttribute("key1","applicationValue");
%>
    ${ key1 } <br>
    <!--如果想输出 session中的 key1 如何？-->
    ${ sessionScope.key1 } <br>
    <!--其他几个域对象-->
    ${ pageScope.key1 } <br>
    ${ requestScope.key1 } <br>
    ${ applicationScope.key1 } <br>
</body>
</html>
